package com.xqt.service;

import com.xqt.config.XqtTransactionalControl;
import com.xqt.dao.UserDao;
import com.xqt.entity.User;
import com.xqt.inters.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;

/**
 * Created by Administrator on 2017/3/13.
 */
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserDao userDao;

    @Override
//    @Cacheable(value = "usercache",keyGenerator = "wiselyKeyGenerator")
//    @XqtTransactionalControl
    public User gerUser() {
        User user=new User();
        user.setName("haha");
        return user;
    }
}
